import Vue from 'vue'
import VueRouter from "vue-router";

import Blog from '@/views/blog'
import Index from '@/views/index'
import Article from '@/views/myArticle'
import Favorite from '@/views/myFavorite'
import Essay from '@/views/myEssay'
import Music from '@/views/myMusic'
import Video from '@/views/myVideo'
import Cool from '@/views/Cool'

Vue.use(VueRouter);

export default new VueRouter({
  routes: [
    {
      path: '/',
      component: Blog
    },
    {
      path: '/blog',
      component: Blog
    },
    {
      path: '/index',
      component: Index
    },
    {
      path: '/article',
      component: Article
    },
    {
      path: '/favorite',
      component: Favorite
    },
    {
      path: '/essay',
      component: Essay
    },
    {
      path: '/music',
      component: Music
    },
    {
      path: '/video',
      component: Video
    },
    {
      path: '/cool',
      component: Cool
    }
  ],
  mode: 'history'
})